package com.ch3cooh.registry.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:zookeeper.properties")
public class ZkProperties {

    @Value("${zk.host}")
    private String host;

    @Value("${zk.auto-register}")
    private boolean isAutoRegster;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public boolean isAutoRegster() {
        return isAutoRegster;
    }

    public void setAutoRegster(boolean autoRegster) {
        isAutoRegster = autoRegster;
    }
}
